package com.njtech.pet.vo;

import com.njtech.pet.entity.Message;

import java.util.Date;

/**
 * @author lxj
 * Date 2020-04-19 11:30
 * Description 获取消息概要的VO
 */
public class MessageShow {
    Message latestMessage;
    Integer unreadCount;


    public MessageShow() {
    }

    public MessageShow(Message latestMessage, Integer unreadCount) {
        this.latestMessage = latestMessage;
        this.unreadCount = unreadCount;
    }

    @Override
    public String toString() {
        return "MessageShow{" +
                "latestMessage=" + latestMessage +
                ", unreadCount=" + unreadCount +
                '}';
    }

    public Message getLatestMessage() {
        return latestMessage;
    }

    public void setLatestMessage(Message latestMessage) {
        this.latestMessage = latestMessage;
    }

    public Integer getUnreadCount() {
        return unreadCount;
    }

    public void setUnreadCount(Integer unreadCount) {
        this.unreadCount = unreadCount;
    }
}
